package org.example.rabbitmq.client.routing;

import java.io.IOException;
import java.util.concurrent.TimeoutException;

public class DirectRouteTest {
    public static void main(String[] args) throws IOException, TimeoutException {
        DirectRoute directRoute = new DirectRoute();
        directRoute.registerListener("info");
        directRoute.registerListener("warn");
        directRoute.registerListener("error");
        directRoute.publish(6);
        directRoute.shutdown();
    }
}
